home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
422_04
/
lc.bat
< prev
next >
Wrap
DOS Batch File
|
1994-03-20
|
836b
|
36 lines
@echo off
rem *
rem * Link object modules with libraries into ".COM" file
rem *
rem * Copyright 1988-1994 Dave Dunfield
rem *
echo DDS MICRO-C 8086 Link Command by Dave Dunfield.
if .%1 == . goto help
if .%MCDIR% == . set MCDIR=\mc
if .%1 == .-s goto small
:tiny
echo Linking TINY model...
link/noi %MCDIR%\PC86RL_T %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,%MCDIR%\MCLIB;
if errorlevel 1 goto fail
echo Converting...
exe2bin %1 %1.COM
del %1.EXE
goto stop
:small
if .%2 == . goto help
echo Linking SMALL model...
shift
link/noi %MCDIR%\PC86RL_S %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,%MCDIR%\MCLIB;
if errorlevel 1 goto fail
goto stop
:help
echo.
echo Use: "%0 [-s] <filename(s)> ..."
echo.
echo Copyright 1988-1994 Dave Dunfield
echo All rights reserved.
goto stop
:fail
echo Link aborted due to errors!!!
:stop